package logic

import (
	"context"
	"zk1/common/proto/taxi"
	"zk1/rpc/server"
)

type TaxiRegister struct {
	taxi.UnimplementedTaxiServer
}

func (t TaxiRegister) Update(ctx context.Context, in *taxi.UpdateRequest) (*taxi.UpdateResponse, error) {
	update, err := server.Update(in)
	if err != nil {
		return nil, err
	}
	return update, nil
}
